<!doctype html>
<html lang="zxx" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:include="comment :: commonheader"></div>
    <!-- Title -->
    <title>Education</title>
</head>

<body>

<div th:replace="comment :: commondiv1"></div>

		<section id="teachers-single" class="pt-70 pb-120 gray-bg">
		    <div class="container">
		        <div class="row justify-content-center">

		            <div class="col-lg-4 col-md-8" >

		                <div class="teachers-left mt-50" style="margin-top: 75px ">
							<div >
								<h2 >个人信息</h2>
							</div>
							<br>
							<div>
								<h5 th:text="'您的用户名为:&nbsp;&nbsp;'+ ${session.loginParent.getParname()} "></h5>
							</div>
							<br>
<!--		                    <div >-->
<!--		                        <h5 th:text="'您的密码为:&nbsp;&nbsp;'+ ${session.loginParent.getParpwd()} "></h5>-->
<!--		                    </div>-->

							<div >
								<h5 th:text="'您孩子的姓名为:&nbsp;&nbsp;'+ ${session.loginParent.getStuname()} "></h5>
							</div>
							<br>
							<div >
								<h5 th:text="'您孩子的性别为:&nbsp;&nbsp; '+ ${session.loginParent.getStusex()} "></h5>
							</div>
							<br>
							<div >
								<h5 th:text="'您孩子的年龄为:&nbsp;&nbsp; '+ ${session.loginParent.getStuage()} "></h5>
							</div>

							<div >
								<a class="btn btn-warning" th:href="@{/information}"  role="button">修改个人信息</a>
							</div>
		                </div> <!-- teachers left -->
		            </div>

					<div class="">

					</div>

		            <div class="col-lg-8">

						<h2 th:text="'欢迎您,尊敬的&nbsp;&nbsp;'+ ${session.loginParent.getParname()}" class="text-center"></h2>
						<br>
		                <div class="teachers-right mt-50">
							<ul class="nav nav-justified" id="myTab" role="tablist">
								<li class="nav-item">
									<a class="active" id="ar-tab" data-toggle="tab" href="#dashboard" role="tab" aria-controls="dashboard" aria-selected="true">绑定孩子信息</a>
								</li>
				
								<li class="nav-item">
									<a id="reviews-tab" data-toggle="tab" href="#reviews" role="tab" aria-controls="reviews" aria-selected="false">我的订单</a>
								</li>
							</ul> <!-- nav -->

		                    <div class="tab-content" id="myTabContent">
		                        <div class="tab-pane fade show active" id="dashboard" role="tabpanel" aria-labelledby="dashboard-tab">
		                            <div class="dashboard-cont">

										<div class="enroll-wrap">
											<form class="courses-form" th:action="@{/addChildMsg}" method="post">
												<span></span>
												<h4>孩子信息填写</h4>
										
												<div class="form-group">
													<input name="cname" type="text" class="form-control" id="stuname" placeholder="孩子的姓名">
												</div>
										
												<div class="form-group">
													<p>请选择孩子的性别：</p>
													<input type="radio" name="sex" value="男" id="stusex_male" ><p>男</p>
													<input type="radio" name="sex" value="女" id="stusex_female"><p>女</p>
												</div>
										
												<div class="form-group">
													<input type="text" name="cage" class="form-control" id="stuage" placeholder="孩子的年龄">
												</div>
										
												<button type="submit" class="default-btn">
													提交
												</button>
											  </form>
										</div>
		                            </div> <!-- dashboard cont -->
		                        </div>

		                        <div class="tab-pane fade" id="reviews" role="tabpanel" aria-labelledby="reviews-tab">

									<p class="text-center">
										<a class="btn btn-warning text-center" th:href="@{/bookorder/order} " role="button" >点击查看订单详情</a>

									<table class="table table-striped table-bordered table-hover">
										<tr>
											<th class="text-center">订单编号</th>
											<th class="text-center">接单老师</th>
											<th class="text-center">下单时间</th>
										</tr>
										<tbody>
										<tr th:each="order:${orders}">
											<td th:text="${order.orderid}"></td>
											<td th:text="${order.teacher.realteaname}"></td>
											<td th:text="${order.ordertime}"></td>
										</tr>

										</tbody>
									</table>

		                        </div>
		                    </div> <!-- tab content -->
		                </div> <!-- teachers right -->
		            </div>
		        </div> <!-- row -->
		    </div> <!-- container -->
		</section>

		<!-- End Discover Area -->
		
		<div th:replace="comment :: commondiv2"></div>
		
		
		<div th:replace="comment :: commondiv3"></div>
		
		<div th:replace="comment :: commondiv4"></div>
		
		<div th:include="comment :: commonscript"></div>
		
		</body>
		</html>